<?php
/**
 * 初始化语言包
 * 
 * gettext语言包初始化
 * 
 * @category   Framework
 * @package    __init__
 * @author     Xinze <xinze@live.cn>
 * @copyright  Copyright (c) 2010, 黄新泽
 * @version    1.0
 * @todo       
 */
if(!defined('ROOT_PATH'))
{
    if (file_exists('../app/configs/config.ini.php'))
    {
        require_once '../app/configs/config.ini.php';
    }
    else
    {
        die('请先运行index.php,生成应用程序框架结构！');
    }
}

if (function_exists('_'))
{
    //init_locale(APP_PATH . '/data/locales/', 'zh_CN', 'HelloWorld');

    $path    = APP_PATH . '/data/locales/';
    $domain  = 'HelloWorld';
    $codeset = 'UTF-8';
    $lang    = 'zh_CN.UTF-8';

    new Zero_Locale($path, $domain, $codeset, $lang);
}
?>